<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>班级管理</title>

    <!--引入公共的easyui文件头-->
    <%@include file="/WEB-INF/views/commons/common_easyui.jsp"%>

    <script type="text/javascript" src="/static/js/system/grade.js"></script>
</head>
<body>

<!--begin信息列表-->
<table id="grade_datagrid"></table>
<!--end信息列表-->

<!--begin左上角工具栏-->
<div id="grade_tb">
        <shiro:hasPermission name="grade:save">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">增加</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="grade:delete">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="remove">删除</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="grade:update">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
        </shiro:hasPermission>
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
        <input class="easyui-textbox"  type="text" id="gradeName" name="gradeName" prompt="请输入班级名称">
        <input class="easyui-combobox"  type="text" id="headTeacher" name="headTeacher" prompt="请输入班主任名称"
               data-options="url:'/employee/selectUsernameByJobs?jobs=老师',valueField: 'id',
                        textField: 'username',panelHeight:'auto'">
        <a id="curriculum_btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true"  data-cmd="queryKeyWord">查询</a>
</div>
<!--end左上角工具栏-->

<!--begin添加/编辑对话框-->
<div id="grade_dialog" align="center">
    <form id="grade_form" method="post">
        <table style="margin-top: 20px;">
            <input type="hidden" name="id" id="gradeId">
            <tr>
                <td>班级名称</td>
                <td><input class="easyui-textbox" name="name"></td>
            </tr>
            <tr>
                <td>班主任</td>
                <td><input class="easyui-combobox" id="headTeacher_id" name="headTeacher.id" data-options="url:'/employee/selectUsernameByJobs?jobs=老师', valueField:'id',
                    textField: 'username',panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>所在教室</td>
                <td><input class="easyui-combobox" id="classRoom.id" name="classRoom.id" data-options="url:'/classRoom/listAll', valueField:'id',
                    textField: 'name',panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>班级状态</td>
                <td><input class="easyui-combobox" name="state"  data-options="valueField: 'label',
		textField: 'value',panelHeight:'auto',
		data: [{
			label: '0',
			value: '未毕业'
		},{
			label: '1',
			value: '已毕业'
		},{
			label: '2',
			value: '未开班'
		}]"></td>
            </tr>
        </table>
    </form>
</div>
<!--end添加/编辑对话框-->

<!--begin添加/编辑对话框底部按钮-->
<div id="grade_bb">
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-save" data-cmd="save">保存</a>
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="cancel">取消</a>
</div>
<!--end添加/编辑对话框底部按钮-->

</body>
</html>
